Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Capture context when creating a generator function, not when it is first .send to. #474

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tomprince
Copy link
Contributor

This adjust eliot_friendly_generator_function to handle the use case of #472 but doesn't do the work of exposing it to users.

When eliot switched to context vars in itamarst#397, this exception became unused.
Since it was never public, there is no reason to keep it around.
@tomprince tomprince force-pushed the eliot-generator-context branch from ca4e172 to 9f5b201 Compare July 14, 2021 23:19
@itamarst
Copy link
Owner

@exarkun could you take a look? This makes sense to me, but you understand this code better. Or did at one point 😁

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants